/*
 * @Description: 基类
 * @Author: Aroma
 * @Date: 2024-09-19 19:55:03
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-19 19:55:06
 * @别瞎看: 你个无脑牛马
 */
abstract class Automobile {
    protected String brand;
    protected String plateNumber;

    public Automobile(String brand, String plateNumber) {
        this.brand = brand;
        this.plateNumber = plateNumber;
    }

    public String getBrand() {
        return brand;
    }

    public String getPlateNumber() {
        return plateNumber;
    }

    // 抽象方法，用于计算租金
    public abstract double getRent();
}